
    
	var a = Math.floor(-50000+Math.random()*100000);
    var temp = a;
    start();
    function start(){
        document.getElementById('ajaxDivlike').innerHTML = a;
    }
    function like(){
        var likebutton = document.getElementsByTagName('input');
        for(var i=0;i<likebutton.length;i++){
            if(likebutton[i].value=="Like"){
                likebutton[i].disabled = true;
            }
            if(likebutton[i].value=="Dislike"){
                likebutton[i].disabled = false;
            }
        }
            document.getElementById('ajaxDivlike').innerHTML = a+1;
    }
    function dislike(){
        var likebutton = document.getElementsByTagName('input');
        for(var i=0;i<likebutton.length;i++){
            if(likebutton[i].value=="Like"){
                likebutton[i].disabled = false;
            }
            if(likebutton[i].value=="Dislike"){
                likebutton[i].disabled = true;
            }
        }
            document.getElementById('ajaxDivLike').innerHTML = a-1;
    }
